package com.itheima.test;

public class test5 {
    public static void main(String[] args) {
        //比较三个和尚的身高，获得最高身高
        int height1 = 150;
        int height2 = 210;
        int height3 = 165;

        int temp = height1>height2?height1:height2;
        int result = temp<height3?height3:temp;
        System.out.println(result);
    }
}
